package demo

import (
	"gin-sns/app/ginframe/router"
)

func init() {
	g1 := router.New("admin", "/demo/form")
	g1.GET("/autocomplete", "", FormController.Autocomplete)
	g1.GET("/basic", "", FormController.Basic)
	g1.GET("/button", "", FormController.Button)
	g1.GET("/cards", "", FormController.Cards)
	g1.GET("/datetime", "", FormController.Datetime)
	g1.GET("/duallistbox", "", FormController.Duallistbox)
	g1.GET("/grid", "", FormController.Grid)

	g1.GET("/jasny", "", FormController.Jasny)
	g1.GET("/select", "", FormController.Select)
	g1.GET("/sortable", "", FormController.Sortable)
	g1.GET("/summernote", "", FormController.Summernote)
	g1.GET("/tabs_panels", "", FormController.Tabs_panels)

	g1.GET("/timeline", "", FormController.Timeline)
	g1.GET("/upload", "", FormController.Upload)
	g1.GET("/validate", "", FormController.Validate)
	g1.GET("/wizard", "", FormController.Wizard)

	g2 := router.New("admin", "/demo/icon")
	g2.GET("/fontawesome", "", IconController.Fontawesome)
	g2.GET("/glyphicons", "", IconController.Glyphicons)

	g3 := router.New("admin", "/demo/modal")
	g3.GET("/dialog", "", ModalController.Dialog)
	g3.GET("/form", "", ModalController.Form)
	g3.GET("/layer", "", ModalController.Layer)
	g3.GET("/table", "", ModalController.Table)
	g3.GET("/check", "", ModalController.Check)
	g3.GET("/parent", "", ModalController.Parent)
	g3.GET("/radio", "", ModalController.Radio)

	g4 := router.New("admin", "/demo/operate")
	g4.GET("/list", "", OperateController.List)
	g4.GET("/add", "", OperateController.Add)
	g4.GET("/detail", "", OperateController.Detail)
	g4.GET("/edit", "", OperateController.Edit)
	g4.POST("/edit", "", OperateController.EditSave)
	g4.GET("/other", "", OperateController.Other)
	g4.GET("/table", "", OperateController.Table)

	g5 := router.New("admin", "/demo/report")
	g5.GET("/echarts", "", ReportController.Echarts)
	g5.GET("/metrics", "", ReportController.Metrics)
	g5.GET("/peity", "", ReportController.Peity)
	g5.GET("/sparkline", "", ReportController.Sparkline)

	g6 := router.New("admin", "/demo/table")
	g6.GET("/button", "", TableController.Button)
	g6.GET("/child", "", TableController.Child)
	g6.GET("/curd", "", TableController.Curd)
	g6.GET("/detail", "", TableController.Detail)
	g6.POST("list", "", TableController.List)

	g6.GET("/editable", "", TableController.Editable)
	g6.GET("/event", "", TableController.Event)
	g6.POST("/export", "", TableController.Export)
	g6.GET("/fixedColumns", "", TableController.FixedColumns)
	g6.GET("/footer", "", TableController.Footer)
	g6.GET("/groupHeader", "", TableController.GroupHeader)

	g6.GET("/image", "", TableController.Image)
	g6.GET("/multi", "", TableController.Multi)
	g6.GET("/other", "", TableController.Other)
	g6.GET("/pageGo", "", TableController.PageGo)

	g6.GET("/params", "", TableController.Params)
	g6.GET("/remember", "", TableController.Remember)
	g6.GET("/recorder", "", TableController.Recorder)
	g6.GET("/search", "", TableController.Search)
}
